from fastapi import FastAPI

def make_app(app:FastAPI):

    @app.get("/")
    def index():
        # 首页
        return 'this is index'